package com.fs.console.yuezi.vo;

import lombok.Data;

/**
 * @author ACE
 * @desc 柱状图数据扩展类
 * @creationTime 2019-08-15 15:06
 * @projectName yuezi-menu
 * @packageName com.fs.console.yuezi.vo
 */
@Data
public class HistogramDataVo {
    private Integer value;

    private String color;

    public HistogramDataVo(Integer value){
        if(value >= 80){
            this.color = "#43AD51";
        }else if(value >= 60){
            this.color = "#FF8621";
        }else{
            this.color = "#E7E7E7";
        }
        this.value = value;
    }

    public HistogramDataVo(Integer value,String color){
        this.color = color;
        this.value = value;
    }
}
